package com.sztx.pay.center.worker.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sztx.pay.center.rpc.api.service.UserActChangeRpcService;
import com.sztx.se.core.quartz.job.BaseJob;
import com.sztx.se.rpc.dubbo.client.DubboClientFactory;

@Component("userActChangeJob")
public class UserActChangeJob extends BaseJob {

	@Autowired(required = true)
	private DubboClientFactory dubboClientFactory;
	
	protected final Logger LOG = LoggerFactory.getLogger(UserActChangeJob.class);

	@Override
	public Object executeJob(JobExecutionContext arg0) throws JobExecutionException {
		UserActChangeRpcService userActChangeRpcService = dubboClientFactory.getDubboClient("userActChangeRpcService");
		userActChangeRpcService.statisticsBalanceChange();
		return null;
	}
}
